#!/bin/bash

cat /etc/passwd|cut -d: -f1,3|tr : " " >file1

while read user uid
do
	if ((uid>=500&&uid<=60000))
	then 	
		echo -e "\e[33m$user是普通用户 --$uid\e[0m"
	elif((uid>0&&uid<=499))
	then
		echo -e "\e[34m$user是系统用户 --$uid\e[0m"
	else
		echo -e "\e[35m$user是超级用户\e[0m"
fi
done<file1	
